home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam13
/
s32.dm
< prev
next >
Wrap
Text File
|
1996-02-18
|
2KB
|
91 lines
# Makefile designed for use by the DMAKE.EXE utility and
# Symantec C/C++ 32 bit
TARGET = main
C_SRC = main.c
CLASS_SRC = class1.d
BINDIR = ..\..\bin
LIBDIR = ..\..\lib
INCDIR = ..\..\include
.IF $(DEBUG)
CFLAGS = -I$(INCDIR) -mn -a4 -J -w2 -w7 -g -o-all
LFLAGS = /noignorecase /co
.ELSE
CFLAGS = -I$(INCDIR) -mn -a4 -J -w2 -w7
LFLAGS = /noignorecase
.END
GFLAGS = $(CFLAGS)
LIBS = $(LIBDIR)\dynlcs.lib
OBJS = {$(C_SRC:b)}.obj {$(CLASS_SRC:b)}.obj
CC = sc
.d.c .PRECIOUS :
$(BINDIR)\dpp -g -p $<
# Since DMAKE diversions treat the backslach like an escape sequence it is
# necessary to double up the backslashes located in paths
LIBS2 := $(LIBS:s/\/\\/)
OBJS2 := $(OBJS:s/\/\\/)
$(TARGET).exe : generics.1 generics.h generics.obj $(OBJS) $(LIBS)
link @$(mktmp $(LFLAGS) $(OBJS2) generics.obj\n$@\n\n$(LIBS2) winmm.lib;\n)
generics.h : $(CLASS_SRC)
$(BINDIR)\dpp -g -t -h -p @$(mktmp $(^:t"\n")\n)
generics.c : generics.h
$(BINDIR)\dpp -g -c
generics.obj : generics.c
$(CC) -c $(GFLAGS) generics.c
generics.1 :
$(BINDIR)\dpp -g $(INCDIR)\generics.h -h -p @$(mktmp $(CLASS_SRC:t"\n")\n)
@echo Done >generics.1
newgens:
$(BINDIR)\dpp -g $(INCDIR)\generics.h -h -p @$(mktmp $(CLASS_SRC:t"\n")\n)
@echo Done >generics.1
clean:
$(BINDIR)\rm -zq {$(CLASS_SRC:b)}.c
$(BINDIR)\rm -zq *.obj
$(BINDIR)\rm -zq *.exe
$(BINDIR)\rm -zq *.ex1
$(BINDIR)\rm -zq *.res
$(BINDIR)\rm -zq *.aps
$(BINDIR)\rm -zq *.pdb
$(BINDIR)\rm -zq *.wsp
$(BINDIR)\rm -zq *.ilk
$(BINDIR)\rm -zq *.bsc
$(BINDIR)\rm -zq *.vcp
$(BINDIR)\rm -zq *.pch
$(BINDIR)\rm -zq *.sbr
$(BINDIR)\rm -zq *.vcw
$(BINDIR)\rm -zq *.map
$(BINDIR)\rm -zq generics.*
$(BINDIR)\rm -zqr WinDebug
$(BINDIR)\rm -zqr WinRel